<%-- 
    Document   : home
    Created on : 7-giu-2008
    Author     : Grillo
--%>

<%@page import="util.InterfaceUtente, mvc.framework.SessionManager"%>
<div id="content">
<%
    InterfaceUtente user = ((InterfaceUtente)(SessionManager.getAttribute(session, "userBean")));
%>
    <img src="<%=user.getImg()!=null?user.getImg():"img/avatar_non_profilato.png" %>" width="100" title="immagine personale di <%=user.getNome() + " " + user.getCognome()%>"/>
    <h1>
<%
    if(request.getParameter("user").contains("st"))
        out.println("Stud. ");
    if(request.getParameter("user").contains("se"))
        out.println("Segr. ");
    if(request.getParameter("user").contains("do"))
        out.println("Prof. ");
%>
    <%=user.getNome() + " " + user.getCognome()%>
    </h1>
</div>